package com.tsinghuabigdata.edu.ddmath.constant;

/**
 * <p>
 * Created by yanshen@tsinghuabigdata.com on 2015/10/27.
 * </p>
 *
 * @author yanshen@tsinghuabigdata.com
 * @version V1.0
 * @packageName: com.tsinghuabigdata.edu.ddmath.constant
 * @createTime: 2015/10/27 14:30
 */
public class AppConst {

    public static final String APP_NAME = "/ddmath";

    //每次上传的作业最多的数量
    public static final int MAX_WORK_IMAGE = 12;
    /**
     * 缓存目录地址
     */
    public static final String CACHE_DIR = APP_NAME + "/cache";

    //public static final String IMAGE_DIR = APP_NAME + "/image";

    /**
     * 图片缓存目录地址
     */
    public static final String IMAGE_CACHE_DIR = CACHE_DIR + "/image";

    /**
     * 图片后缀
     */
    public static final String IMAGE_SUFFIX_NAME = ".jpg";

    /**
     * 序列化缓存目录地址
     */
    public static final String OBJECT_CACHE_DIR = "/obj";


    /**
     * 登录用户
     */
    public static final int SESSION_LOGIN_USER = 1;

    /**
     * 登录用户
     */
    public static final int SESSION_NS_LOGIN = 2;

    /**
     * 更新信息
     */
    public static final int SESSION_UPDATE_INFO = 3;

    /**
     * MAC地址
     */
    public static final int SESSION_NS_DEVICE = 4;

    /**
     * 标志位，主页个人中心是否显示
     */
    public static final String IS_USERCENTER_SHOW = "isshowusercenter";

    /**
     * 学习绑定的笔序列号
     */
    public static final int SESSION_SERIAL_NUMS = 5;
    /**
     * 离线文件列表
     */
    public static final int SESSION_OFFLINE_DATA = 6;

    /**
     * 学生信息
     */
    public static final int SESSION_STUDENT_INFO = 7;

    /**
     * 网络状态
     */
    public static final int SESSION_NETWORK_STSTE = 8;

    /**
     * 用户类型
     */
    public static final int SESSION_ACCOUNT_TYPE = 9;

    /**
     * 是否使用DNS代理
     */
    public static final int SESSION_USE_PROXY = 11;
    /**
     * 更新APK信息
     */
    public static final int APK_LATEST_VERSION_INFO = 12;

    /**
     * 消息数量
     */
    public static final String MESSAGE_COUNT = "messsageCount";

    /**
     * 最大扫描设备数量
     */
    public static final int MAX_DEVICES_SIZE = 10;

    /**
     * 最大扫描时间
     */
    public static final int MAX_SEARCH_TIME = 10 * 1000;

    /**
     * 最大缓存过期时间
     */
    public static final long MAX_EXPIRE_TIME = 1000 * 60 * 60;
    /**
     * 单次页面最大加载数
     */
    public static final int PAGE_SIZE = 15;

    /**
     * 用户名
     */
    public static final String LOGIN_NAME = "loginName";

    /**
     * 密码
     */
    public static final String LOGIN_PASS = "loginPass";

    /**
     * 2c用户
     */
    public static final String TOC_USER = "studentc";

    /**
     * 发送验证码倒计时
     */
    public static final int CODE_MAX_TIME = 60;


    /**
     * 最大验证次数
     */
    public static final int MAX_VALIDATE_COUNT = 5;

    /**
     * 验证等待毫秒
     */
    public static final int VALIDATE_SLEEP = 10000;

    /**
     * 提示间隔时间秒
     */
    public static final long UPLOAD_SEND_TIME_INTERVAL = 30;

    /**
     * 七牛key
     */
    public static final String QN_ACCESS_KEY = "tSU-kF0WPdKLOSQ_0-HBEWCXEVkVsng9r-h6HW4T";

    /**
     * 七牛key
     */
    public static final String QN_SECRET_KEY = "-Dg9uDgf33Zxtr2-FVYZZYqslaH2vwQgp6bPo91E";

    /**
     * 七牛空间名称
     */
    public static final String QN_BUCKET = "log-trace";

    /**
     * 最低10kb为慢网络
     */
    public static final int MIN_SPEED = 10;

    /**
     * 3000毫秒
     */
    public static final long NET_MONITOR_SLEEP = 3000;

    /**
     * 每隔3秒读取笔状态
     */
    public static final long PEND_STATUS_DELAYED = 3000;

    /**
     * 最低上传需要的电量
     */
    public static final int MIN_BATTERY = 20;

    /**
     * 监控数据包大小10kb
     */
    public static final int MONITOR_SEND_SIZE = 10;


    //Latex 最大字体设置
    public static final int LATEX_MAX_FONT = 7;

    /**
     * 页面加载状态
     */
    public static final int PG_STATE_LOAD_FINISH = 1010;
    public static final int PG_STATE_LOAD_FINISH_NO_DATA = 1012;
    public static final int PG_STATE_LOAD_MORE_FINISH = 1013;
    public static final int PG_STATE_LOAD_MORE_FINISH_NO_DATA = 1015;
    public static final int PG_STATE_LOAD_FINISH_FAIL = 1001;
    public static final int PG_STATE_LOAD_MORE_FINISH_FAIL = 1002;

    /**
     * 连接异常状态
     */
    public static final int CONNECT_UNKNOW = 0;
    public static final int CONNECT_NONET = 1;
    public static final int CONNECT_TIMEOUT = 2;
    public static final int CONNECT_SERVER = 3;

    /**
     * 智能笔数据类型 专用考试
     */
    public static final int TYPE_PENDATA_SPECEXAM = 1;
    /**
     * 智能笔数据类型 专用作业
     */
    public static final int TYPE_PENDATA_SPECWODK = 2;
    /**
     * 智能笔数据类型 通用作业
     */
    public static final int TYPE_PENDATA_COMMWORK = 3;

    /**
     * 智能笔数据类型 通用考试
     */
    public static final int TYPE_PENDATA_COMMEXAM = 4;

    /**
     * 多页每页数量
     */
    public static final int MAX_PAGE_NUM = 10;
    public static final int MAX_PAGE_STAT = 40;
    /**
     * 欢迎页是否打开字段
     */
    public static final String WELCOME_OPENED = "welcome_opened";
    /**
     * 老师批阅重判项目，批阅详情页面引导图是否查看字段
     */
    public static final String CORRECT_DETAIL_GUIDCE_OPENED = "correct_detail_guidce_opened";
    /**
     * 机器人问答2版，提问次数引导
     */
    public static final String ROBOT2_ASKTIMES_GUIDCE_OPENED = "ROBOT2_ASKTIMES_GUIDCE_OPENED";

    /**
     * 从消息中跳转
     * 页面题目跳转
     */
    public static final String SUBJECT_INDEX = "index";
    public static final String DATE = "date";

    /**
     * 接受推送消息状态
     */
    public static final String RECV_PUSH_MSG_ENABLE = "is_recv_push_msg";
    /**
     * 消息中心更新
     */
    public static final String MSG_CENTER_UPDATE_ENABLE = "msg_center_update_enable";
    /**
     * 新消息更新广播字段
     */
    public static final String IS_HAVE_NEW_MSG = "is_have_new_msg";
    public static final String IS_HAVE_NEW_MSG_TYPE = "is_have_new_msg_type";
    public static final int MSG_RECORDER = 109;
    public static final int HOME_MSG_CACHE = 1003;

    public static final String MSG_TYPE = "msgtype";
    public static final String MSG_TYPE_MYMSG = "wdxx";
    public static final String MSG_TYPE_REC = "zxtj";
    public static final String CLASS_RANK = "CLASS_RANK";
    public static final String ZX_RANK = "ZX_RANK";


    /**
     *
     */
    public static final int SESSION_XBOOK_BITMAP = 1002;

    public static final String ACTION_CLOSE_ACTIVITY = "android.action.zxbook.close";
    public static final String ACTION_XBOOK_ADD = "android.action.zxbook.add";
    public static final String ACTION_XBOOK_EDIT = "android.action.zxbook.edit";
    public static final String ACTION_START_WAITUPLOAD = "android.action.zxbook.waitupload";
    public static final String ACTION_UPLOAD_SUCCESS = "android.action.upload.success";

}
